package com.gz.slin.system.service.impl;

import com.gz.slin.system.dao.MenuDao;
import com.gz.slin.system.pojo.Menu;
import com.gz.slin.system.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/8/15.
 */
@Service("menuService")
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuDao menuDao;

    @Override
    public Menu selectByPrimaryKey(Integer id) {
        return menuDao.selectByPrimaryKey(id);
    }

    @Override
    public List<Menu> findAllMenuByNid(Integer nid) {
        return menuDao.findAllMenuByNid(nid);
    }
}
